<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/v1/h5/pages/public/head.jsp"%>

<!-- 我的收货地址 -->
<div id="ldhMyAdress">
	<input type="hidden" id="fromPage" value="${param.fromPage}" />
	<input type="hidden" id="cartIds" value="${param.cartIds}" />
	<div data-role="header" class="header_fixed">
    	<a data-role="none" data-rel="back" class="back_btn">返回</a>
    	<h1>我的收货地址</h1>
    </div>
    <div data-role="content">
    	<div class="my_address_add"><a rel="external" href="${ctx}/h5/addAddress.shtml">添加收货地址</a></div>
    	<div class="my_address">
        	<h3>收货地址</h3>
        	<ul>
            	
            </ul>
        </div>
    </div>
    <script type="text/javascript">
    seajs.use([ctx+'/v1/h5/js/custom/ucenter/module-ucenter.js?'+Date.parse(new Date())],function(m){
    	m.init(m);
		if($("#fromPage").val()!="" && $("#cartIds").val()!=""){
			$ldh_base.setCookie("fromPage",$("#fromPage").val());
			$ldh_base.setCookie("cartIds",$("#cartIds").val());
		}
		
		if($("#fromPage").val()=="suborder" || $ldh_base.getCookie("fromPage")=="suborder"){
			$("#fromPage").val($ldh_base.getCookie("fromPage"));
			$("#cartIds").val($ldh_base.getCookie("cartIds"))
			$ldh_base.setFromPage("suborder");
		}else if($("#fromPage").val()=="mine" ){
			
			$ldh_base.clearCookie("fromPage");
			$ldh_base.clearCookie("cartIds");
			$("#fromPage").val("mine");
			$("#cartIds").val("")
			$ldh_base.setFromPage("mine");
		}
		m.getMyAddressList();
	});
 	document.title="云便利-我的收货地址";
    </script>
</div>


<%@ include file="/v1/h5/pages/public/footer.jsp"%>
